<?php

class UserTableSeeder extends Seeder {

	/**
	 * Run the database seeds.
	 *
	 * @return void
	 */
	public function run()
	{
		DB::table('users')->insert(array(
			['username'	=> 'admin',
			'password'	=> Hash::make('admin'),
			'email'		=> 'adm@sdf.com',
			'identity'	=> '管理员',
			'permission'=> 10,
			'last_login'=> date('Y-m-d',time()),
			'created_at'=> date('Y-m-d',time()),
			'updated_at'=> date('Y-m-d',time()),
			],
			['username'	=> 'yuesong',
			'password'	=> Hash::make('yuesong'),
			'email'		=> 'adm2@sdf.com',
			'identity'	=> '管理员',
			'permission'=> 10,
			'last_login'=> date('Y-m-d',time()),
			'created_at'=> date('Y-m-d',time()),
			'updated_at'=> date('Y-m-d',time()),
			],
			['username'	=> 'demo',
			'password'	=> Hash::make('demo'),
			'email'		=> 'adm3@sdf.com',
			'identity'	=> '管理员',
			'permission'=> 5,
			'last_login'=> date('Y-m-d',time()),
			'created_at'=> date('Y-m-d',time()),
			'updated_at'=> date('Y-m-d',time()),
			],
			));
	}

}
